import dayjs from 'dayjs';
import { DatePicker } from 'antd';

const JPDatePicker = ({ value, onChange, valueFormat = 'YYYY-MM-DD HH:mm:ss', ...rest }: any) => {
  const transformedValue = value ? dayjs(value) : undefined;
  const transformedOnChange = (value: any) => {
    onChange(value ? value.format(valueFormat) : undefined);
  };
  return <div></div>;
  // <DatePicker {...rest} value={transformedValue} onChange={transformedOnChange} />;
};

export default JPDatePicker;
